package com.yf.bean;

public enum StatusCode {
    Success(0, "Success"),
    Failed(300, "Failed"),
    UPLOAD_IMAGE_FAIL(400, "UPLOAD_IMAGE_FAIL"),
    // exam status
    EXAM_INVALID_PARAMS(500, "EXAM_INVALID_PARAMS"),
    EXAM_BEAN_NULL(501, "EXAM_BEAN_NULL"),
    EXAM_INSERT_FAIL(502, "EXAM_INSERT_FAIL"),
    EXAM_QUS_INCOMPATIBLE(503, "EXAM_QUS_INCOMPATIBLE"),
    EXAM_QUS_ADD_FAIL(504, "EXAM_QUS_ADD_FAIL"),
    EXAM_QUS_ADD_ANS_FAIL(505, "EXAM_QUS_ADD_ANS_FAIL"),
    EXAM_QUS_ADD_ROLE_DENY(506, "EXAM_QUS_ADD_ROLE_DENY"),
    EXAM_QUS_ANS_INVALID(507, "EXAM_QUS_ANS_INVALID"),
    // user status
    USER_INVALID_PARAMS(600, "USER_INVALID_PARAMS"),
    USER_RECAPTCHA_FAIL(601, "USER_RECAPTCHA_FAIL"),
    USER_RECAPTCHA_MISS(602, "USER_RECAPTCHA_MISS"),
    USER_ADD_FAIL(603, "USER_ADD_FAIL"),
    USER_EXISTED(604, "USER_EXISTED"),
    USER_REG_CODE(605, "USER_REG_CODE_FAIL"),
    USER_INVALID_REG_CODE(606, "USER_INVALID_REG_CODE"),
    USER_REG_FAKE_EMAIL(607, "USER_REG_FAKE_EMAIL"),

    //
    USER_LOG_NOT_EXIST(607, "USER_LOG_NOT_EXIST"),
    // priority
    USER_INVALID_PRIORITY(700, "USER_INVALID_PRIORITY"),
    USER_PERMISSION_DENY(800, "USER_PERMISSION_DENY"),
    // user review list
    USER_REVIEW_NULL(900, "USER_PERMISSION_DENY"),

    //
    USER_REST_VALID_CODE_NULL(1000, "USER_REST_VALID_CODE_NULL"),
    USER_REST_VALID_CODE_EXPIRE(1001, "USER_REST_VALID_CODE_EXPIRE"),
    USER_REST_VALID_CODE_INVALID(1002, "USER_REST_VALID_CODE_INVALID"),
    USER_REST_VALID_CODE_ALREADY(1003, "USER_REST_VALID_CODE_ALREADY"),
    USER_REST_VALID_CODE_ERROR(1004, "USER_REST_VALID_CODE_ERROR");


    StatusCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    Integer code;
    String msg;
}
